package com.springboot.astra.service.serviceImpl;

import com.springboot.astra.bean.IdxCarousel;
import com.springboot.astra.mapper.IdxCarouselMapper;
import com.springboot.astra.service.IdxCarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IdxCarouselServiceImpl implements IdxCarouselService {
    @Autowired
    IdxCarouselMapper idxCarouselMapper;
    @Override
    public IdxCarousel getOne(Integer id) {
        return idxCarouselMapper.getOne(id);
    }

    @Override
    public List<IdxCarousel> getAll() {
        return idxCarouselMapper.getAll();
    }

    @Override
    public void insertOne(IdxCarousel idxCarousel) {
        idxCarouselMapper.insertOne(idxCarousel);
    }

    @Override
    public void deleteOne(Integer id) {
        idxCarouselMapper.deleteOne(id);
    }
}
